from __init__ import PersistentDict

if __name__ == '__main__':
    # sample code
    testfile = 'settings.cfg'
    cfg = PersistentDict(testfile)
    
    cfg['HOME'] = '/home/user'
    cfg['BgColor'] = '#FF0000'
    cfg['Count'] = [ 1, 2, 3 ]
    cfg['Coordinate'] = (123.456, 789.123)
    cfg['UnicodeText'] = unicode('Some Unicode Text')
    cfg['IntData'] = 0b00101100
    
    for k in cfg.keys():
        print '%s = %s' % (k, cfg[k])
    
